<?php include THEMES_PATH.'public/before_body2.phtml'; ?>
</head>
<body>
<?php include THEMES_PATH.'public/header2.phtml'; ?>
<div class="wrapper01">  
<div class="wrapper">
<div class="clear" style="height:3px;"></div>
<div class="pagetopbootmbg">
</div>
<div class="clear" style="height:1px;"></div>
<div class="cpagefix" style="padding:10px 150px;">
        <h2>L’état</h2>
        <div class="blank"></div>
         <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
        <tr>
          <td width="23%" height="24" align="right" bgcolor="#ffffff"> Numéro de la commande ：</td>
          <td width="77%" height="24" align="left" bgcolor="#ffffff"><?php echo $order['order_sn'];?></td>
        </tr>
        <?php if($order['confirm_time']):?>
        <tr>
          <td height="24" align="right" bgcolor="#ffffff">L’état de la commande ：</td>
          <td height="24" align="left" bgcolor="#ffffff">Confirmé&nbsp;&nbsp;&nbsp;&nbsp;Le temps de confirmation : <?php echo date('d/m/Y H:i:s', $order['confirm_time'])?></td>
        </tr>
        <?php endif;
        if($order['payment_time']):
        ?>
        <tr>
          <td height="24" align="right" bgcolor="#ffffff"> L’état de Paiement ：</td>
          <td height="24" align="left" bgcolor="#ffffff">Payé&nbsp;&nbsp;&nbsp;&nbsp; Le temps de paiement : <?php echo date('d/m/Y H:i:s', $order['payment_time'])?><br /></td>
        </tr>
        <?php 
        	endif;
        	if($order['shipping_time']):
        ?>
        <tr>
          <td height="24" align="right" bgcolor="#ffffff"> L’état de livraison ：</td>
          <td height="24" align="left" bgcolor="#ffffff">Expédié&nbsp;&nbsp;&nbsp;&nbsp; Le temps de livraison : <?php echo date('d/m/Y H:i:s', $order['shipping_time'])?></td>
        </tr>
        <?php 
        	endif;
        	if($order['shipping_no']):
        ?>
         <tr>
          <td height="24" align="right" bgcolor="#ffffff"> Expedition ：</td>
          <td height="24" bgcolor="#ffffff">
          <table><tr>
          <td width="140px" align="left"><?php echo $order['shipping_no']?></td>
          <td width="120px">
          <?php if($order['expless_form']): echo $order['expless_form'];endif;?>
       <!--    <form method="post" action="http://www.ems.com.cn/ems/order/singleQuery_e" name="singleForm" target="_blank">
          <input type="hidden" name="mailNum" value="<?php echo $order['shipping_no'];?>" />
          <input type="hidden" name="checkCode" value="" />
          <input type="submit" value="EMS" class="small_invoice_button">
          </form></td>
          <td width="120px">
          <form method="post" action="http://www.chronopost.fr/transport-express/livraison-colis/accueil/suivi?appid=9680_718&amp;appparams=http%3A%2F%2Fwww.chronopost.fr%3A54711%2Fwebclipping%2Fservlet%2Fwebclip%3Fjahia_url_web_clipping%3Dhttp%3A%2F%2Flocalhost%3A54702%2Fexpedier%2FinputLTNumbers.do&amp;resetAppSession=true#field_9680" target="_blank">
          <input type="hidden" name="chronoNumbers" value="<?php echo $order['shipping_no'];?>" />
          <input type="submit" value="chronopost" class="small_invoice_button">
          </form> --></td></tr>
          </table></td>
        </tr>
	 		<?php 
	 			endif;
	 		?>
                        
              </table>
        <div class="blank"></div>
<?php if(isset($order['productList']) && $order['productList']):?>
        <h2>
        Liste de marchandises »        
        </h2>
        <div class="blank"></div>
         <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
          <tr>
            <th width="23%" height="24" align="center" bgcolor="#ffffff">Article</th>
            <th width="29%" height="24" align="center" bgcolor="#ffffff"> Taille </th>
            <!--<th>Le prix du marché:</th>-->
            <th width="26%" height="24" align="center" bgcolor="#ffffff"> Prix</th>
            <th width="9%" height="24" align="center" bgcolor="#ffffff">Quantité</th>
            <th width="20%" height="24" align="center" bgcolor="#ffffff"> Total</th>
          </tr>
          <?php foreach ($order['productList'] as $product):?>
           <tr>
            <td height="24" bgcolor="#ffffff">
            <a href="<?php echo url('product/info', 'id='.$product['product_id']);?>" target="_blank" class="f6"><?php echo $product['product_name'] ?></a>
            </td>
            <td height="24" align="left" bgcolor="#ffffff"> <?php echo isset($product['attr']) ? $product['attr'] : null;?></td>
            <td height="24" align="right" bgcolor="#ffffff"><?php echo isset($product['pay_price']) ? currency($product['pay_price']) : null; ?></td>
            <td height="24" align="center" bgcolor="#ffffff"><?php echo $product['qty'] ?></td>
            <td height="24" align="right" bgcolor="#ffffff"><?php echo currency($product['total_amount']) ?></td>
          </tr>
          <?php endforeach;?>
         <tr>
            <td height="24" colspan="8" align="right" bgcolor="#ffffff">
            Moment total %s: <?php echo isset($order['product_amount']) ? currency($order['product_amount']) : ''; ?> </td>
          </tr>
        </table>
         <div class="blank"></div>
        <h2>Montant total »</h2>
        <div class="blank"></div>
         <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
          <tr>
            <td height="24" align="right" bgcolor="#ffffff">
                Le montant total: <?php echo isset($order['product_amount']) ? currency($order['product_amount']) : ''; ?>
                + les frais de port: <?php echo currency($order['shipping_fee']);?>
                + les frais de change: <?php echo currency($order['payment_fee']);?>
                </td>
          </tr>
          <tr>
            <td height="24" align="right" bgcolor="#ffffff">
            <?php if($order['surplus_money']){?>
          - The balance payment :<?php echo currency($order['surplus_money']);?><br>
         <?php }?>
        <?php if(floatval($order['integral_money'])){?>
         - Integral Money : <?php echo currency($order['integral_money']);?><br>
         <?php }?>
         <?php if(floatval($order['discount_count'])){?>
         - discount : <?php echo currency($order['discount_count']);?><br>
         <?php }?>
          </tr>
          <tr>
            <td height="24" align="right" bgcolor="#ffffff"> montant à payer : <?php if (isset($order['pay_amount'])) echo currency($order['pay_amount']) ?>            </td>
          </tr>
        </table>
<?php endif;?>
        <div class="blank"></div>
        <h2> Mode de règlement </h2>
        <div class="blank"></div>
        <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
                <tr>
                  <td height="24" bgcolor="#ffffff">
                  Mode de paiement: <?php echo $order['payment_method_name']?>。 montant à payer : <strong><?php echo currency($order['payment_fee']);?></strong><br />
                   <?php if(isset($paymentSubmit) && $paymentSubmit)echo $paymentSubmit;?>
                                    </td>
          </tr>
                  <tr>
                  <td height="24" align="right" bgcolor="#ffffff">
                                    </td>
          </tr>
        </table>
        <div class="blank"></div>
        <h2>Autre Info</h2>
        <div class="blank"></div>
        <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
                    <tr>
            <td width="15%" height="24" align="right" bgcolor="#ffffff">Mode de livraison：</td>
            <td width="85%" height="24" colspan="3" align="left" bgcolor="#ffffff"><?php echo $order['shippingInfo']['description'] ? $order['shippingInfo']['description'] : $order['shippingInfo']['title']?></td>
          </tr>
          
          <tr>
            <td width="15%" height="24" align="right" bgcolor="#ffffff"> Mode de règlement ：</td>
            <td height="24" colspan="3" align="left" bgcolor="#ffffff"><?php echo $order['paymentInfo']['description'] ? $order['paymentInfo']['description'] : $order['paymentInfo']['title'];?></td>
          </tr>
                                                                                                    <tr>
            <td width="15%" height="24" align="right" bgcolor="#ffffff">Rupture de stock traité：</td>
            <td height="24" colspan="3" align="left" bgcolor="#ffffff">Livré après tous les produits sont prêts.</td>
          </tr>
        </table>
     </div></div></div>
<?php include THEMES_PATH.'public/footer2.phtml'; ?>


<?php include THEMES_PATH.'public/after_body.phtml'; ?>
